The LogOffServer method logs off an SQL server or ODBC data source. Use this method when you have logged on to the data source by using LogOnServer Method (Application Object).
object.LogOffServer DLLName, ServerName, DatabaseName, UserID, Password
*When you pass an empty string ("") for this parameter, the program uses the value that is already set in the report. If you want to override a value that is already set in the report, use a non
If you try to log off a server that is still in use (that is, there is an object variable still in focus that holds reference to a report that requires being logged on to the server to access data) you will be unable to log off. This will apply to every object that comes from the Report Object, as they all hold reference to the report through their respective Report properties.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |